﻿//获取url参数
function $getUriParameter(obj) {
    var uri = location.href;
    var ps = uri.substring(uri.indexOf(obj + "=") + (obj.toString().length + 1));
    if (ps.indexOf("&") == -1) { return ps; }
    else { return ps.substring(0, ps.indexOf("&")); }
}

//调用广告
function $viewAd(jsUri) {
    //var jsUri = "/ads/" + (num == null ? "singleAd/" + mark : "ListAd/" + mark + "/" + num);
    document.write("<script type='text/javascript' src='" + jsUri + "'></" + "script>");
}